import { Image as AntdImage } from 'antd';
import React from 'react';

import type { ImageProps as AntdImageProps } from 'antd';
import PreviewGroup from './PreviewGroup';

export type { Props as PreviewGroupProps } from './PreviewGroup';
export { PreviewGroup };

export type ImageProps = AntdImageProps;

function Image(props: ImageProps) {
  return <AntdImage {...props} />;
}

Image.PreviewGroup = PreviewGroup;
export default Image;
